<template>
	<view>
		<!-- <free-nav-bar showBack title="品牌执法详情"></free-nav-bar> -->
		<view class="py-3 pl-3 pr-3 lineHight-2 font-14">
			<view>企业名称：{{ enterpriseName }}</view>
			<view>公用品牌名称：{{ publicBrandName }}</view>
			<view>执法情况说明：{{ enforcementInstructions }}</view>
			<view>处理意见：{{ handlingOpinions }}</view>
			<view>发布时间：{{ createTime }}</view>
		</view>
	</view>
</template>

<script>
	import $H from "@/common/free-lib/request.js";
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue";
	export default {
		components: {
			freeNavBar,
		},
		data() {
			return {
				enterpriseName: undefined,
				publicBrandName: undefined,
				enforcementInstructions: undefined,
				handlingOpinions: undefined,
				createTime: undefined,
			};
		},
		onLoad(option) {
			this.getBlackInfo(option.id);
		},
		methods: {
			getBlackInfo(id) {
				$H.get(
					"/agriculture/brandEnforcement/queryById", {
						id,
					}, {}
				).then((res) => {
					if (!res.result) {
						uni.showToast({
							title: "未查询到相关信息",
							icon: "none",
						});
						return;
					}
					this.enterpriseName = res.result.enterpriseName;
					this.publicBrandName = res.result.publicBrandName;
					this.enforcementInstructions = res.result.enforcementInstructions;
					this.handlingOpinions = res.result.handlingOpinions;
					this.createTime = res.result.createTime;
				});
			},
		},
	};
</script>

<style>
</style>